<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<script type="text/javascript">
		//object//引用数据类型(复合数据类型)
		var obj = new Object();
		//var per=new Object();=  var per={};
		/* 
		 ******&&&&&   obj.属性名=属性值；   &&&&******
		 */
		console.log(obj);
		console.log(typeof obj);
		obj.name = '孙悟空';
		obj.age = 18;
		obj.sex = '男';
		obj.height = '500px';
		obj.bool = true;
		obj.swk = null;
		obj.name = '猪八戒';//修改属性值

		delete obj.name;//删除属性值 删除后为undefined

		console.log(obj.hello);//检测里面没有的属性=未定义undefined

		obj['age'] = 456;
		console.log(obj);

		var obj1 = new Object();
		obj1.name = '789';
		var obj2 = obj1;
		    obj3 = obj2;
		obj3.name = '388';
		obj2.name = '258';
		obj1.name = '999';
		console.log(obj2);
		console.log(obj1);
		console.log(obj3);
		var car={
				name:'野马',
				age:1800,
				price:182000,
				
		};
		var woman={
				name:'中川阳平',
				age:18,
				price:100000,
				
		};
		var per={
				name:'孙悟空',
				age:18,
				sex:'男',
				height:'1000px',//最后一个可以不加逗号
				car:car,
				woman:woman,
				123:'1000斤',//66行
		};//var per=new Object();=var per={};￥￥￥￥￥￥￥
		console.log(per['car']);
		console.log(per['sex']);
		console.log(per.car);
		console.log(per['123']);//这样写。。。。
		console.log('sex' in per);//有的话结果为true，没有结果为false
	</script>
</body>
</html>